import config from "@/config"
import http from "@/utils/request"

export default {
    // 设备
    deviceList: {
		getList: {
			url: `${config.API_URL}/adminapi/device.Device/lists`,
			name: "获取设备",
			// get: async function(data={}){
            //     return await http.get(this.url, data);
            // }
            get: async function(params){
                return await http.get(this.url, params);
            }
		},
		add: {
			url: `${config.API_URL}/adminapi/device.Device/add`,
			name: "添加设备",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/device.Device/edit`,
			name: "编辑设备",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/device.Device/delete`,
			name: "删除设备",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.Device/detail`,
			name: "设备详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 设备类别
	deviceClass: {
		getType: {
			url: `${config.API_URL}/adminapi/device.Class/lists`,
			name: "获取设备类别",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/device.Class/add`,
			name: "添加设备类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/device.Class/edit`,
			name: "编辑设备类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/device.Class/delete`,
			name: "删除设备类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Class/updateStatus`,
			name: "修改设备类别状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 设备状态
	deviceState: {
		getState: {
			url: `${config.API_URL}/adminapi/device.State/lists`,
			name: "获取设备状态",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/device.State/add`,
			name: "添加设备状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/device.State/edit`,
			name: "编辑设备状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/device.State/delete`,
			name: "删除设备状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.State/updateStatus`,
			name: "修改设备状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 故障类别
	deviceFault: {
		getFault: {
			url: `${config.API_URL}/adminapi/device.Fault/lists`,
			name: "获取故障类别",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/device.Fault/add`,
			name: "添加故障类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/device.Fault/edit`,
			name: "编辑故障类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/device.Fault/delete`,
			name: "删除故障类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Fault/updateStatus`,
			name: "修改故障类别状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 设备维修
	Maintenance: {
		lists: {
			url: `${config.API_URL}/adminapi/device.Maintenance/lists`,
			name: "获取设备维修",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/device.Maintenance/add`,
			name: "添加设备维修",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/device.Maintenance/edit`,
			name: "编辑设备维修",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/device.Maintenance/delete`,
			name: "删除设备维修",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.Maintenance/detail`,
			name: "详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/device.Maintenance/check`,
			name: "审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        work: {
			url: `${config.API_URL}/adminapi/device.Maintenance/work`,
			name: "派工",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 保养类别
	deviceService: {
		getService: {
			url: `${config.API_URL}/adminapi/device.Service/lists`,
			name: "获取保养类别",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/device.Service/add`,
			name: "添加保养类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/device.Service/edit`,
			name: "编辑保养类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/device.Service/delete`,
			name: "删除保养类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Service/updateStatus`,
			name: "修改保养类别状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 设备位置
	devicePosition: {
		lists: {
			url: `${config.API_URL}/adminapi/device.Position/lists`,
			name: "获取设备位置",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/device.Position/add`,
			name: "添加设备位置",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/device.Position/edit`,
			name: "编辑设备位置",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/device.Position/delete`,
			name: "删除设备位置",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Position/updateStatus`,
			name: "修改设备位置状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 维修任务
    deviceTask: {
		getService: {
			url: `${config.API_URL}/adminapi/device.Task/lists`,
			name: "获取维修任务",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.Task/add`,
			name: "维修任务汇报",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.Task/edit`,
			name: "维修任务转单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/device.Task/check`,
			name: "维修任务验证",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.Task/detail`,
			name: "维修任务详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        evaluate: {
			url: `${config.API_URL}/adminapi/device.Task/save`,
			name: "维修评价",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 维修原因
    Upkeep: {
		getService: {
			url: `${config.API_URL}/adminapi/device.Upkeep/lists`,
			name: "获取维修原因",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.Upkeep/add`,
			name: "维修原因",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.Upkeep/edit`,
			name: "维修原因",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.Upkeep/delete`,
			name: "维修原因删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Upkeep/updateStatus`,
			name: "修改维修原因状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 维保内容
    deviceMain: {
		lists: {
			url: `${config.API_URL}/adminapi/maintenance.Detail/lists`,
			name: "获取维保内容",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/maintenance.Detail/add`,
			name: "维保内容",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/maintenance.Detail/edit`,
			name: "维保内容",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/maintenance.Detail/delete`,
			name: "维保内容删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/maintenance.Detail/detail`,
			name: "维保内容详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 紧急程度
    Urgent: {
		getService: {
			url: `${config.API_URL}/adminapi/device.Urgent/lists`,
			name: "获取紧急程度",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.Urgent/add`,
			name: "紧急程度",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.Urgent/edit`,
			name: "紧急程度",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.Urgent/delete`,
			name: "紧急程度删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Urgent/updateStatus`,
			name: "修改紧急程度状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 计划管理
    Plan: {
		getService: {
			url: `${config.API_URL}/adminapi/plan.Plan/lists`,
			name: "获取计划管理",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/plan.Plan/add`,
			name: "计划管理",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/plan.Plan/edit`,
			name: "计划管理",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/plan.Plan/detail`,
			name: "计划管理详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/plan.Plan/delete`,
			name: "计划管理删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/plan.Plan/updateStatus`,
			name: "修改计划管理状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 设备点检
    Check: {
		lists: {
			url: `${config.API_URL}/adminapi/device.Check/lists`,
			name: "获取设备点检",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.Check/add`,
			name: "新增点检",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.Check/edit`,
			name: "编辑点检",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.Check/detail`,
			name: "点检详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.Check/delete`,
			name: "点检删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        upCheck: {
			url: `${config.API_URL}/adminapi/device.Check/check`,
			name: "点检",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Check/updateStatus`,
			name: "修改点检状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 设备点检巡检
    CheckClass: {
		lists: {
			url: `${config.API_URL}/adminapi/device.CheckClass/lists`,
			name: "获取设备点检巡检",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.CheckClass/add`,
			name: "点检巡检添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.CheckClass/edit`,
			name: "点检巡检编辑",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.CheckClass/delete`,
			name: "点检巡检删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.CheckClass/updateStatus`,
			name: "修改点检巡检状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 设备保养
    Maintain: {
		lists: {
			url: `${config.API_URL}/adminapi/device.Maintain/lists`,
			name: "获取设备保养",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.Maintain/add`,
			name: "设备保养添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.Maintain/edit`,
			name: "设备保养编辑",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.Maintain/detail`,
			name: "设备保养详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.Maintain/delete`,
			name: "设备保养删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Maintain/updateStatus`,
			name: "修改设备保养状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 保养方案
    Project: {
		lists: {
			url: `${config.API_URL}/adminapi/device.Project/lists`,
			name: "获取保养方案",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.Project/add`,
			name: "保养方案添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.Project/edit`,
			name: "保养方案编辑",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.Project/detail`,
			name: "保养方案删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.Project/delete`,
			name: "保养方案删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Project/updateStatus`,
			name: "修改保养方案状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 保养任务
    ProjectTask: {
		lists: {
			url: `${config.API_URL}/adminapi/device.ProjectTask/lists`,
			name: "获取保养任务",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.ProjectTask/add`,
			name: "保养任务添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.ProjectTask/edit`,
			name: "保养任务编辑",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.ProjectTask/detail`,
			name: "保养任务详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.ProjectTask/delete`,
			name: "保养任务删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.ProjectTask/updateStatus`,
			name: "修改保养任务状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 保养记录
    ProjectLog: {
		lists: {
			url: `${config.API_URL}/adminapi/device.ProjectLog/lists`,
			name: "获取保养记录",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.ProjectLog/add`,
			name: "保养记录添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.ProjectLog/edit`,
			name: "保养记录编辑",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.ProjectLog/detail`,
			name: "保养记录详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.ProjectLog/delete`,
			name: "保养记录删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.ProjectLog/updateStatus`,
			name: "修改保养记录状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 根据保养任务获取保养方案
    getProjectByTask: {
        url: `${config.API_URL}/adminapi/Api/getProjectByTask`,
        name: "根据保养任务获取保养方案",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    // 设备巡检
    Inspection: {
		lists: {
			url: `${config.API_URL}/adminapi/device.Inspection/lists`,
			name: "获取设备巡检",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.Inspection/add`,
			name: "新增巡检",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.Inspection/edit`,
			name: "编辑巡检",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.Inspection/detail`,
			name: "巡检详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.Inspection/delete`,
			name: "巡检删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.Inspection/updateStatus`,
			name: "修改巡检状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 巡检方案
    InspectionProject: {
		lists: {
			url: `${config.API_URL}/adminapi/device.InspectionProject/lists`,
			name: "获取巡检方案",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.InspectionProject/add`,
			name: "新增巡检方案",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.InspectionProject/edit`,
			name: "编辑巡检方案",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.InspectionProject/detail`,
			name: "巡检方案详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.InspectionProject/delete`,
			name: "巡检方案删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.InspectionProject/updateStatus`,
			name: "修改巡检方案状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 巡检任务
    InspectionProjectTask: {
		lists: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectTask/lists`,
			name: "获取巡检任务",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectTask/add`,
			name: "新增巡检任务",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectTask/edit`,
			name: "编辑巡检任务",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectTask/detail`,
			name: "巡检任务详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectTask/delete`,
			name: "巡检任务删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectTask/updateStatus`,
			name: "修改巡检任务状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 巡检记录
    InspectionProjectLog: {
		lists: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectLog/lists`,
			name: "获取巡检记录",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectLog/add`,
			name: "新增巡检记录",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectLog/edit`,
			name: "编辑巡检记录",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectLog/detail`,
			name: "巡检记录详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectLog/delete`,
			name: "巡检记录删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/device.InspectionProjectLog/updateStatus`,
			name: "修改巡检记录状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 根据巡检任务获取巡检方案
    getInspectionProjectByTask: {
        url: `${config.API_URL}/adminapi/Api/getInspectionProjectByTask`,
        name: "根据巡检任务获取巡检方案",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    // 关联父设备
    addFather:{
        url: `${config.API_URL}/adminapi/device.Device/addFather`,
        name: "关联父设备",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    // 设备点检
    deviceDianJian:{
        // 点检项目
        project:{
            lists: {
                url: `${config.API_URL}/adminapi/device.Check/lists`,
                name: "获取设备点检",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/device.Check/add`,
                name: "新增点检",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/device.Check/edit`,
                name: "编辑点检",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/device.Check/detail`,
                name: "点检详情",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/device.Check/delete`,
                name: "点检删除",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            update_status: {
                url: `${config.API_URL}/adminapi/device.Check/updateStatus`,
                name: "修改点检状态",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 点检方案
        programme:{
            lists: {
                url: `${config.API_URL}/adminapi/device.CheckProject/lists`,
                name: "获取设备点检方案",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/device.CheckProject/add`,
                name: "新增点检方案",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/device.CheckProject/edit`,
                name: "编辑点检方案",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/device.CheckProject/detail`,
                name: "点检方案详情",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/device.CheckProject/delete`,
                name: "点检方案删除",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            update_status: {
                url: `${config.API_URL}/adminapi/device.CheckProject/updateStatus`,
                name: "修改点检方案状态",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 点检任务
        task:{
            lists: {
                url: `${config.API_URL}/adminapi/device.CheckProjectTask/lists`,
                name: "获取设备点检任务",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/device.CheckProjectTask/detail`,
                name: "点检任务详情",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        // 点检记录
        record:{
            lists: {
                url: `${config.API_URL}/adminapi/device.CheckProjectLog/lists`,
                name: "获取设备点检记录",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/device.CheckProjectLog/add`,
                name: "点检记录详情",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/device.CheckProjectLog/detail`,
                name: "点检任务详情",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/device.CheckProjectLog/delete`,
                name: "点检任务详情",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
    },
    beiJian:{
        unit:{
            lists: {
                url: `${config.API_URL}/adminapi/goods.Unit/lists`,
                name: "获取备件单位列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/goods.Unit/add`,
                name: "添加备件单位",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/goods.Unit/edit`,
                name: "编辑备件单位",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/goods.Unit/delete`,
                name: "删除备件单位",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            update_status: {
                url: `${config.API_URL}/adminapi/goods.Unit/updateStatus`,
                name: "删除备件单位",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        cate:{
            lists: {
                url: `${config.API_URL}/adminapi/goods.Cate/lists`,
                name: "获取备件分类列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/goods.Cate/add`,
                name: "添加备件分类",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/goods.Cate/edit`,
                name: "编辑备件分类",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/goods.Cate/delete`,
                name: "删除备件分类",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        goods:{
            lists: {
                url: `${config.API_URL}/adminapi/goods.Goods/lists`,
                name: "获取备件列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/goods.Goods/add`,
                name: "添加备件",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/goods.Goods/edit`,
                name: "编辑备件",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/goods.Goods/delete`,
                name: "删除备件",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            detail: {
                url: `${config.API_URL}/adminapi/goods.Goods/detail`,
                name: "备件详情",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            import: {
                url: `${config.API_URL}/adminapi/Upload/goods_import`,
                name: "导入备件",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
    },
}
